Skip to main content

UnreliableProperty<T>

UnreliableProperty<T>

An UnreliableProperty writes and reads primitives and structs on the unreliable channel. The local value is not guaranteed to be in sync with the server value, and does not resend on packet loss, but is more bandwidth efficient.

Properties

value

T value { get; set; }

dirty

bool dirty { get; }

True if the property has local changes.

Methods

SetRedundantWritesEnabled

void SetRedundantWritesEnabled(bool value)

WriteLength

int WriteLength(StreamContext context)

Write

bool Write(WriteStream stream, StreamContext context)

Read

bool Read(ReadStream stream, StreamContext context)

ReadValue

bool ReadValue(ReadStream stream, StreamContext context)